package com.xc.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(AppConfig.class);

        TestService testService = context.getBean(TestService.class);
        Stu stu = new Stu();
        stu.setName("san");
        stu.setAge(12);
        testService.test(stu);

        context.close();
    }
}
